package com.taropan.wallpaper.ui;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;

import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;

import com.google.gson.Gson;
import com.taropan.wallpaper.R;
import com.taropan.wallpaper.model.HomepageInfo;
import com.taropan.wallpaper.model.LastUpdatedWallpaper;
import com.taropan.wallpaper.model.PugListAdapter;
import com.taropan.wallpaper.model.TodayRecommend;
import com.taropan.wallpaper.util.Consts;
import com.taropan.wallpaper.util.HttpUtils;
import com.taropan.wallpaper.util.UICore;
import com.taropan.wallpaper.util.Utils;
import com.taropan.wallpaper.widget.CustomGridView;

import android.app.Activity;
import android.os.AsyncTask;
import android.os.Bundle;
import android.os.Handler;
import android.os.Handler.Callback;
import android.os.Message;
import android.view.View;
import android.widget.GridView;
import android.widget.Switch;

public class WallpaperDetailActivity extends BaseActivity implements Callback{

private static final String TAG = WallpaperDetailActivity.class.getSimpleName();

private static final int EXEU_GET_DETAIL_INFO = 0;

	private CustomGridView mGridView;
	private Handler handler;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		Utils.dout(TAG, "onCreate");
		setContentView(R.layout.wallpaper_detail);
		handler = new Handler(this);
		initHead();
		UICore.eventTask(this, WallpaperDetailActivity.this, EXEU_GET_DETAIL_INFO, "", null);
		
	}
	
	@Override
	protected void onResume() {
		super.onResume();
		Utils.dout(TAG, "onResume");
	}
	
	
	
	@Override
		public void execute(int mes, Object obj) {
			super.execute(mes, obj);
			switch (mes) {
			case EXEU_GET_DETAIL_INFO:
				break;

			default:
				break;
			}
		}

	@Override
	public boolean handleMessage(Message msg) {
		switch (msg.what) {
		case EXEU_GET_DETAIL_INFO:
			break;

		default:
			break;
		}
		return false;
	}
	
	
}
